/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace ATkg.BizAppProject.DomainModels
{
    [Entity(TableCnName = "工单管理",TableName = "daojiaoGD",DetailTable =  new Type[] { typeof(daojiaogd_gz)},DetailTableCnName = "批次拆分",DBServer = "ServiceDbContext")]
    public partial class daojiaoGD:ServiceEntity
    {
        /// <summary>
       ///计划单号
       /// </summary>
       [Display(Name ="计划单号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Required(AllowEmptyStrings=false)]
       public string schedule_id { get; set; }

       /// <summary>
       ///生产单号
       /// </summary>
       [Display(Name ="生产单号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string name { get; set; }

       /// <summary>
       ///投料批次
       /// </summary>
       [Display(Name ="投料批次")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string raw_lot_id { get; set; }

       /// <summary>
       ///性能
       /// </summary>
       [Display(Name ="性能")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string grade { get; set; }

       /// <summary>
       ///镀层
       /// </summary>
       [Display(Name ="镀层")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string plating { get; set; }

       /// <summary>
       ///投料批次
       /// </summary>
       [Display(Name ="投料批次")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string lot_ids { get; set; }

       /// <summary>
       ///产品型号
       /// </summary>
       [Display(Name ="产品型号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string prodcut_spec { get; set; }

       /// <summary>
       ///发料重量
       /// </summary>
       [Display(Name ="发料重量")]
       [DisplayFormat(DataFormatString="10,4")]
       [Column(TypeName="decimal")]
       public decimal? raw_resume_weight { get; set; }

       /// <summary>
       ///数量
       /// </summary>
       [Display(Name ="数量")]
       [DisplayFormat(DataFormatString="10,4")]
       [Column(TypeName="decimal")]
       public decimal? product_qty { get; set; }

       /// <summary>
       ///产品
       /// </summary>
       [Display(Name ="产品")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string product_id { get; set; }

       /// <summary>
       ///状态
       /// </summary>
       [Display(Name ="状态")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string state { get; set; }

       /// <summary>
       ///质量判定
       /// </summary>
       [Display(Name ="质量判定")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string quality_judge { get; set; }

       /// <summary>
       ///是否有效(0:否,1:是)
       /// </summary>
       [Display(Name ="是否有效(0:否,1:是)")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int IsValid { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [Column(TypeName="nvarchar(max)")]
       public string Remarks { get; set; }

       /// <summary>
       ///创建人ID
       /// </summary>
       [Display(Name ="创建人ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long CreateId { get; set; }

       /// <summary>
       ///创建人名
       /// </summary>
       [Display(Name ="创建人名")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///修改人ID
       /// </summary>
       [Display(Name ="修改人ID")]
       [Column(TypeName="bigint")]
       public long? ModifyId { get; set; }

       /// <summary>
       ///修改人名
       /// </summary>
       [Display(Name ="修改人名")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyTime { get; set; }

       /// <summary>
       ///键
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="键")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long Id { get; set; }

       [Display(Name ="批次拆分")]
       [ForeignKey("Id")][Navigate(NavigateType.OneToMany,nameof(Id),nameof(Id))]
       public List<daojiaogd_gz> daojiaogd_gz { get; set; }


       
    }
}